package com.xx.sg.schedule;

import com.xx.sg.own.service.DataSynService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class SynBaseDataTask {

    @Autowired
    private DataSynService dataSynService;

    @Scheduled(cron = "0 0 1 * * ?")
    public void synBaseData() {
        dataSynService.dataSyn();
    }

}
